package ooday03.Society;

public class ExtendsTest {
    public static void main(String[] args) {
        /*Student*/
        Student s = new Student("Ky","sjz",41,"JSD2302","acek2023");
        s.eat();
        s.sleep();
        s.study();
        s.sayHi();
        /*Doctor*/
        Doctor d = new Doctor("Tony","tjc",56,"first");
        d.eat();
        d.sleep();
        d.sayHi();
        d.cut();
        /*Teacher*/
        Teacher t=new Teacher("Kelly","bjc",23,5623.5);
        t.eat();
        t.sleep();
        t.sayHi();
        t.teach();
    }
}
